{% extends 'index.html' %}
{% block header %}
	<script type="text/javascript" src="static/js/flot/jquery.flot.pack.js"></script>
	<script type="text/javascript" src="static/js/evaluate.js"></script>
{% endblock %}
{% block content %}
<h2>Evaluate Links</h2>
<form>
	<table border="0">
		<tr>
			<th><label for="correct_links">Correct Links (.nt):</label> <a class="action_link" id="clear_correct" href="javascript:;">(clear)</a></th>
			<th><label for="generated_links">Generated Links (.nt):</label> <a class="action_link" id="clear_generated" href="javascript:;">(clear)</a></th>
		</tr>
		<tr>
			<td><textarea rows="15" cols="70" name="correct_links" id="correct_links"></textarea></td>
			<td><textarea rows="15" cols="70" name="generated_links" id="generated_links"></textarea></td>
		</tr>
	</table>

	<input type="checkbox" name="reverse" id="reverse" />
	<label for="reverse">Reverse pair order</label>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="button" id="evaluate_btn" value="Evaluate!">
	&nbsp;&nbsp;&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp;
	<b>Precision:</b> <span id="precision"> - </span>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<b>Recall:</b> <span id="recall"> - </span>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<b>F1-measure:</b> <span id="f1_measure"> - </span>
</form>

<br />

<table border="0">
	<tr>
		<th><label for="missing_links">Missing Links (<span id="num_missing">-</span>):</label></th>
		<th><label for="incorrect_links">Incorrect Links (<span id="num_incorrect">-</span>):</label></th>
	</tr>
	<tr>
		<td><textarea rows="15" cols="70" name="missing_links" id="missing_links"></textarea></td>
		<td><textarea rows="15" cols="70" name="incorrect_links" id="incorrect_links"></textarea></td>
	</tr>
</table>

<br />

{% endblock %}
